<?php
/**
 * Created by PhpStorm.
 * User: yuanjie
 * Date: 15/12/8
 * Time: 上午11:55
 */
class Order30Check extends Eloquent
{
    protected $table = "order_30_check";
    protected $fillable = array('order_id','object_id','item_id');

    public static $check = array(
        array(
            'object_id' => 'general_suggest',
            'object_name' => '总评',
            'item_id' => 'suggest',
            'item_name' => '建议',
        ),
        array(
            'object_id' => 'chassis_check',
            'object_name' => '底盘',
            'item_id' => 'speed_changing_box',
            'item_name' => '变速箱/差速器油检查',
        ),
        array(
            'object_id' => 'chassis_check',
            'object_name' => '底盘',
            'item_id' => 'dust_cover',
            'item_name' => '防尘套',
        ),
        array(
            'object_id' => 'chassis_check',
            'object_name' => '底盘',
            'item_id' => 'front_damper',
            'item_name' => '前减震器',
        ),
        array(
            'object_id' => 'chassis_check',
            'object_name' => '底盘',
            'item_id' => 'after_damper',
            'item_name' => '后减震器',
        ),
        array(
            'object_id' => 'chassis_check',
            'object_name' => '底盘',
            'item_id' => 'bearing',
            'item_name' => '轮轴承及球头轴承',
        ),
        array(
            'object_id' => 'chassis_check',
            'object_name' => '底盘',
            'item_id' => 'spare_tire',
            'item_name' => '备胎',
        ),
        array(
            'object_id' => 'chassis_check',
            'object_name' => '底盘',
            'item_id' => 'escape_pipe',
            'item_name' => '排气管及软连接检查',
        ),
        array(
            'object_id' => 'chassis_check',
            'object_name' => '底盘',
            'item_id' => 'chassis_screw',
            'item_name' => '底盘螺丝锁紧',
        ),

        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'air_cleaner',
            'item_name' => '空气滤清器',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'damping_oil',
            'item_name' => '刹车油',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'cornering_oil',
            'item_name' => '转向助力油',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'freezing_point',
            'item_name' => '防冻液冰点',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'freezing_level',
            'item_name' => '防冻液液位',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'fattery_power',
            'item_name' => '电瓶',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'bath_of_glass',
            'item_name' => '雨刷水（玻璃水）',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'freezing_line',
            'item_name' => '防冻液管路',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'air_inlet_line',
            'item_name' => '发动机进气管路',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'spark_plug',
            'item_name' => '火花塞',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'belt',
            'item_name' => '皮带',
        ),
        array(
            'object_id' => 'engine_room_check',
            'object_name' => '发动机舱',
            'item_id' => 'engine_oil',
            'item_name' => '发动机机油',
            'score' => 6,
        ),

        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'front_wide_lamp',
            'item_name' => '前示宽灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'dipped_headlight',
            'item_name' => '近光灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'distance_headlight',
            'item_name' => '远光灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'front_cornering_lamp',
            'item_name' => '前转向灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'front_hazard_warning_light',
            'item_name' => '前危险警告灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'front_fog_lamp',
            'item_name' => '前雾灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'after_wide_lamp',
            'item_name' => '后示宽灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'car_no_lamp',
            'item_name' => '牌照灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'stop_lamp',
            'item_name' => '制动灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'after_cornering_lamp',
            'item_name' => '后转向灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'after_hazard_warning_light',
            'item_name' => '后危险警告灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'back_up_lamp',
            'item_name' => '倒车灯',
        ),
        array(
            'object_id' => 'light_check',
            'object_name' => '灯光',
            'item_id' => 'after_fog_lamp',
            'item_name' => '后雾灯',
        ),
        array(
            'object_id' => 'cab_check',
            'object_name' => '驾驶室',
            'item_id' => 'air_conditioning_filter',
            'item_name' => '空调滤清器',
        ),
        array(
            'object_id' => 'cab_check',
            'object_name' => '驾驶室',
            'item_id' => 'wiper_water_spray',
            'item_name' => '雨刷喷水',
        ),
        array(
            'object_id' => 'cab_check',
            'object_name' => '驾驶室',
            'item_id' => 'wiper_blade_clean',
            'item_name' => '雨刷器',
        ),
        array(
            'object_id' => 'cab_check',
            'object_name' => '驾驶室',
            'item_id' => 'engine_computer',
            'item_name' => '发动机电脑检测',
        ),
        array(
            'object_id' => 'cab_check',
            'object_name' => '驾驶室',
            'item_id' => 'horn_sound',
            'item_name' => '喇叭',
        ),
        array(
            'object_id' => 'cab_check',
            'object_name' => '驾驶室',
            'item_id' => 'accelerator_pedal',
            'item_name' => '油门踏板',
        ),
        array(
            'object_id' => 'cab_check',
            'object_name' => '驾驶室',
            'item_id' => 'brake_pedal',
            'item_name' => '制动器踏板／驻车制动',
        ),
        array(
            'object_id' => 'cab_check',
            'object_name' => '驾驶室',
            'item_id' => 'clutch_pedal',
            'item_name' => '离合器踏板',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_front_tread',
            'item_name' => '左前胎胎纹',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_front_flank_wear',
            'item_name' => '左前胎偏磨',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_front_tire_pressure',
            'item_name' => '左前胎胎压',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_front_age_limit',
            'item_name' => '左前胎年限',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_front_facade',
            'item_name' => '左前胎外观',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_front_brake_block',
            'item_name' => '左前胎制动片',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_front_brake_disk',
            'item_name' => '左前胎制动盘',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_front_tread',
            'item_name' => '右前胎胎纹',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_front_flank_wear',
            'item_name' => '偏磨',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_front_tire_pressure',
            'item_name' => '右前胎胎压',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_front_age_limit',
            'item_name' => '右前胎年限',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_front_facade',
            'item_name' => '右前胎外观',
        ),
        
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_front_brake_block',
            'item_name' => '右前胎制动片',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_front_brake_disk',
            'item_name' => '右前胎制动盘',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_after_tread',
            'item_name' => '左后胎胎纹',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_after_flank_wear',
            'item_name' => '左后胎偏磨',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_after_tire_pressure',
            'item_name' => '左后胎胎压',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_after_age_limit',
            'item_name' => '左后胎年限',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_after_facade',
            'item_name' => '左后胎外观',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_after_brake_block',
            'item_name' => '左后胎制动片',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'left_after_brake_disk',
            'item_name' => '左后胎制动盘',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_after_tread',
            'item_name' => '右后胎胎纹',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_after_flank_wear',
            'item_name' => '右后胎偏磨',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_after_tire_pressure',
            'item_name' => '右后胎胎压',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_after_age_limit',
            'item_name' => '右后胎年限',
        ),array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_after_facade',
            'item_name' => '右后胎外观',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_after_brake_block',
            'item_name' => '右后胎制动片',
        ),
        array(
            'object_id' => 'four_wheel_check',
            'object_name' => '四轮行驶检测',
            'item_id' => 'right_after_brake_disk',
            'item_name' => '右后胎制动盘',
        ),
    );

    public static $general_suggest = array(
        'id' => 'general_suggest',
        'name' => '总评',
        'item' => array(
            array(
                'id' => 'suggest',
                'name' => '建议',
                'value' => 0,
                'status' => 0,
                'note' => ''
            )
        )
    );

    public static $chassis_check = array(
        'id' => 'chassis_check',
        'name' => '底盘',
        'item' => array(
            array(
                'id' => 'speed_changing_box',
                'name' => '变速箱/差速器油检查',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'dust_cover',
                'name' => '防尘套',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'front_damper',
                'name' => '前减震器',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'after_damper',
                'name' => '后减震器',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'bearing',
                'name' => '轮轴承及球头轴承',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'spare_tire',
                'name' => '备胎',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'escape_pipe',
                'name' => '排气管及软连接检查',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'chassis_screw',
                'name' => '底盘螺丝锁紧',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
        )
    );

    public static $engine_room_check = array(
        'id' => 'engine_room_check',
        'name' => '发动机舱',
        'item' => array(
            array(
                'id' => 'air_cleaner',
                'name' => '空气滤清器',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'damping_oil',
                'name' => '刹车油',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'cornering_oil',
                'name' => '转向助力油',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'freezing_point',
                'name' => '防冻液冰点',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'freezing_level',
                'name' => '防冻液液位',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'fattery_power',
                'name' => '电瓶',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'bath_of_glass',
                'name' => '雨刷水（玻璃水）',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'freezing_line',
                'name' => '防冻液管路',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'air_inlet_line',
                'name' => '发动机进气管路',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'drainage_hole_clean',
                'name' => '车门及天窗排水孔清洁',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'spark_plug',
                'name' => '火花塞',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'belt',
                'name' => '皮带',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'engine_oil',
                'name' => '发动机机油',
                'value' => 0,
                'status' => 0,
                'note' => '',
            ),
        )
    );

    public static $light_check = array(
        'id' => 'light_check',
        'name' => '灯光',
        'item' => array(
            array(
                'id' => 'front_wide_lamp',
                'name' => '前示宽灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'dipped_headlight',
                'name' => '近光灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'distance_headlight',
                'name' => '远光灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'front_cornering_lamp',
                'name' => '前转向灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'front_hazard_warning_light',
                'name' => '前危险警告灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'front_fog_lamp',
                'name' => '前雾灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'after_wide_lamp',
                'name' => '后示宽灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'car_no_lamp',
                'name' => '牌照灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'stop_lamp',
                'name' => '制动灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'after_cornering_lamp',
                'name' => '后转向灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'after_hazard_warning_light',
                'name' => '后危险警告灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'back_up_lamp',
                'name' => '倒车灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'after_fog_lamp',
                'name' => '后雾灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'hazard_warning_light',
                'name' => '危险警告灯',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
        )
    );

    public static $cab_check = array(
        'id' => 'cab_check',
        'name' => '驾驶室',
        'item' => array(
            array(
                'id' => 'air_conditioning_filter',
                'name' => '空调滤清器',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'window_lift',
                'name' => '玻璃升降',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'wiper_water_spray',
                'name' => '雨刷喷水',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'wiper_blade_angle',
                'name' => '雨刷片角度',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'wiper_blade_clean',
                'name' => '雨刮器',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'engine_computer',
                'name' => '发动机电脑检测',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'horn_sound',
                'name' => '喇叭',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'accelerator_pedal',
                'name' => '油门踏板',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'brake_pedal',
                'name' => '制动器踏板／驻车制动',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'clutch_pedal',
                'name' => '离合器踏板',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
        )
    );

    public static $four_wheel_check = array(
        'id' => 'four_wheel_check',
        'name' => '四轮行驶检测',
        'item' => array(
            array(
                'id' => 'left_front_tread',
                'name' => '左前胎胎纹',
                'value' => 10,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_front_flank_wear',
                'name' => '左前胎偏磨',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_front_tire_pressure',
                'name' => '左前胎胎压',
                'value' => 4,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_front_age_limit',
                'name' => '左前胎年限',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_front_facade',
                'name' => '左前胎外观',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_front_brake_block',
                'name' => '左前胎制动片',
                'value' => 15,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_front_brake_disk',
                'name' => '左前胎制动盘',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_front_valve_cock',
                'name' => '左前胎气门嘴',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_front_tread',
                'name' => '右前胎胎纹',
                'value' => 10,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_front_flank_wear',
                'name' => '右前胎偏磨',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_front_tire_pressure',
                'name' => '右前胎胎压',
                'value' => 4,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_front_age_limit',
                'name' => '右前胎年限',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_front_facade',
                'name' => '右前胎外观',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_front_brake_block',
                'name' => '右前胎制动片',
                'value' => 15,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_front_brake_disk',
                'name' => '右前胎制动盘',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_front_valve_cock',
                'name' => '右前胎气门嘴',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_after_tread',
                'name' => '左后胎胎纹',
                'value' => 10,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_after_flank_wear',
                'name' => '左后胎偏磨',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_after_tire_pressure',
                'name' => '左后胎胎压',
                'value' => 4,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_after_age_limit',
                'name' => '左后胎年限',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_after_facade',
                'name' => '左后胎外观',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_after_brake_block',
                'name' => '左后胎制动片',
                'value' => 15,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_after_brake_disk',
                'name' => '左后胎制动盘',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'left_after_valve_cock',
                'name' => '左后胎气门嘴',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_after_tread',
                'name' => '右后胎胎纹',
                'value' => 10,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_after_flank_wear',
                'name' => '右后胎偏磨',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_after_tire_pressure',
                'name' => '右后胎胎压',
                'value' => 4,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_after_age_limit',
                'name' => '右后胎年限',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_after_facade',
                'name' => '右后胎外观',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_after_brake_block',
                'name' => '右后胎制动片',
                'value' => 15,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_after_brake_disk',
                'name' => '右后胎制动盘',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
            array(
                'id' => 'right_after_valve_cock',
                'name' => '右后胎气门嘴',
                'value' => 0,
                'status' => 0,
                'note' => ''
            ),
        )
    );

    public static function get_four_wheel_check($order_id){
        $datas = Order30Check::where('order_id',$order_id)
            ->where('object_id','four_wheel_check')
            ->get()
            ->toArray();
        $result = Order30Check::$four_wheel_check;
        if(!is_null($datas)){
            foreach($datas as $_data){
                foreach($result['item'] as &$_result){
                    if($_result['id'] == $_data['item_id']){
                        $_result['value'] = $_data['value'];
                        $_result['status'] = $_data['status'];
                        $_result['note'] = $_data['note'];
                    }
                }
            }
        }
        return $result;
    }

    public static function get_cab_check($order_id){
        $datas = Order30Check::where('order_id',$order_id)
            ->where('object_id','cab_check')
            ->get()
            ->toArray();
        $result = Order30Check::$cab_check;
        if(!is_null($datas)){
            foreach($datas as $_data){
                foreach($result['item'] as &$_result){
                    if($_result['id'] == $_data['item_id']){
                        $_result['value'] = $_data['value'];
                        $_result['status'] = $_data['status'];
                        $_result['note'] = $_data['note'];
                    }
                }
            }
        }
        return $result;
    }

    public static function get_light_check($order_id){
        $datas = Order30Check::where('order_id',$order_id)
            ->where('object_id','light_check')
            ->get()
            ->toArray();
        $result = Order30Check::$light_check;
        if(!is_null($datas)){
            foreach($datas as $_data){
                foreach($result['item'] as &$_result){
                    if($_result['id'] == $_data['item_id']){
                        $_result['value'] = $_data['value'];
                        $_result['status'] = $_data['status'];
                        $_result['note'] = $_data['note'];
                    }
                }
            }
        }
        return $result;
    }

    public static function get_engine_room_check($order_id){
        $datas = Order30Check::where('order_id',$order_id)
            ->where('object_id','engine_room_check')
            ->get()
            ->toArray();
        $result = Order30Check::$engine_room_check;
        if(!is_null($datas)){
            foreach($datas as $_data){
                foreach($result['item'] as &$_result){
                    if($_result['id'] == $_data['item_id']){
                        $_result['value'] = $_data['value'];
                        $_result['status'] = $_data['status'];
                        $_result['note'] = $_data['note'];
                    }
                }
            }
        }
        return $result;
    }

    public static function get_chassis_check($order_id){
        $datas = Order30Check::where('order_id',$order_id)
            ->where('object_id','chassis_check')
            ->get()
            ->toArray();
        $result = Order30Check::$chassis_check;
        if(!is_null($datas)){
            foreach($datas as $_data){
                foreach($result['item'] as &$_result){
                    if($_result['id'] == $_data['item_id']){
                        $_result['value'] = $_data['value'];
                        $_result['status'] = $_data['status'];
                        $_result['note'] = $_data['note'];
                    }
                }
            }
        }
        return $result;
    }

    public static function get_general_suggest($order_id){
        $datas = Order30Check::where('order_id',$order_id)
            ->where('object_id','general_suggest')
            ->get()
            ->toArray();
        $result = Order30Check::$general_suggest;
        if(!is_null($datas)){
            foreach($datas as $_data){
                foreach($result['item'] as &$_result){
                    if($_result['id'] == $_data['item_id']){
                        $_result['value'] = $_data['value'];
                        $_result['status'] = $_data['status'];
                        $_result['note'] = $_data['note'];
                    }
                }
            }
        }
        return $result;
    }

    public static function getMileage($user_car_id,$user_id,$status){
        return DB::select(
            "SELECT * FROM (  SELECT
              `place`,
              `order_id`,
              `mileage`,
              `shop_id`
            FROM
              `orders`
            WHERE `user_car_id` = ".$user_car_id."
            AND `user_id` = ".$user_id."
            AND `status` IN (".$status.")
            AND `mileage` != 0
            ORDER BY `created_at` DESC  ) t  GROUP BY t.`mileage`  ORDER BY t.mileage DESC"
        );
    }
}